<script>
	import $store from './store/index.js';
	import baseUrl from '@/utils/siteInfo.js';

	export default {
		onLaunch: function() {
			console.log('App Launch')
			$store.dispatch('user/USER_CONFIG')
			//获取手机上面安全距离
			$store.dispatch('phone/SET_PHONE_NAME_ACT');
			// 引入字体
			uni.loadFontFace({
				family: 'BTH',
				source: `url(${baseUrl.imgroot}/static/fontFamily/BTH.ttf)`,
				global: true,
				success() {
					console.log('success loadFontFace')
				},
				fail() {
					console.log('fail loadFontFace')
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import '@/uni_modules/uview-ui/theme.scss';
	@import "@/uni_modules/uview-ui/index.scss";

	// 全局样式
	:not(not) {
		box-sizing: border-box;
	}
</style>
